﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Diagnostics;

namespace FiltroMultiploGridview
{
    public partial class AtribuicaoAutomatica : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected override void OnInit(EventArgs e)
        {
            if (!DesignMode)
            {
                Debug.WriteLine("executou o OnInit");
                FuncoesFiltros.AdicionaCabecalhoPesquisa(gvEmployees, sqlEmployees, new CampoDoFiltro[] { 
                                                                                        new CampoDoFiltro("Title",20), 
                                                                                        new CampoDoFiltro("VacationHours",0), 
                                                                                        new CampoDoFiltro("HireDate", 13), 
                                                                                        new CampoDoFiltro("SickLeaveHours", 0), 
                                                                                        new CampoDoFiltro("BirthDate", 13), 
                                                                                        new CampoDoFiltro("Gender",0) 
                                                                                    });
            }
        }
    }
}